package me.sunpeng.design.prototype;

/**
 * @author sp
 */
public class Client {
    public static void main(String[] args) {
        //传统方法
        Sheep sheep = new Sheep("tom", 1, "白色");
        Sheep sheep1 = new Sheep(sheep.getName(), sheep.getAge(), sheep.getColor());
        //....
        //输出信息
        System.out.println(sheep);
        System.out.println(sheep1);

    }
}
